package com.admin.common.thread;


public class TestRunnable implements Runnable{

    @Override
    public void run() {

        for (int i = 0; i<10 ;i++) {
            System.out.println("一遍玩耍");
        }
    }

    public static void main(String[] args) {

        TestRunnable tr = new TestRunnable();

        Thread thread= new Thread(tr);

        thread.start();
        for (int i = 0; i<10 ;i++) {
            System.out.println("一遍学习");
        }

    }
}
